import request from '@/utils/request'

/**
 *获取布防摄像头列表
 * @param query
 */
export function listConfig(query) {
  return request({
    url: '/nssc/cameraConfig/lists',
    method: 'get',
    params: query
  })
}


//在离线
export function HKonline(query) {
  return request({
    url: '/nssc/video/MHKonlineBF/onlineStatusBF',
    method: 'post',
    params: query
  }) 
}

// 摄校时
export function HKtiming(query) {
  return request({
    url: '/nssc/video/MHKTimingBF/synTimeBF',
    method: 'post',
    params: query
  })
}

//摄像头水印
export function HKwatermark(query) {
  return request({
    url: '/nssc/video/MHKwatermarkBF/fixWaterBF',
    method: 'post',
    params: query
  })
}


//拍照
export function HKpicture(query) {
  return request({
    url: '/nssc/video/MHKsnapPictureBF/synPictureBF',
    method: 'post',
    params: query
  })
}

/////////////////////点击事件//////////////////////////////////////////
//云台向上 开始
export function HKptzUp(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlUpStartBF',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HKptzUpEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlUpEndBF',
    method: 'post',
    params:query
  })
}

//云台向下 开始
export function HKptzDown(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlDownStartBF',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HKptzDownEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlDownEndBF',
    method: 'post',
    params:query
  })
}

//云台向左  开始
export function HKptzLeft(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftStartBF',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HKptzLeftEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftEndBF',
    method: 'post',
    params:query
  })
}

//云台向右  开始
export function HKptzRight(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightStartBF',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HKptzRightEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightEndBF',
    method: 'post',
    params:query
  })
}

//云台向左上  开始
export function HKptzLeftUp(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftUpStartBF',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HKptzLeftUpEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftUpEndBF',
    method: 'post',
    params:query
  })
}

//云台向右上 开始
export function HKptzRightUp(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightUpStartBF',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HKptzRightUpEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightUpEndBF',
    method: 'post',
    params:query
  })
}

//云台向左下  开始
export function HKptzLeftDown(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftDownStartBF',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HKptzLeftDownEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftDownEndBF',
    method: 'post',
    params:query
  })
}

//云台向右下 开始
export function HKptzRightDown(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightDownStartBF',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HKptzRightDownEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightDownEndBF',
    method: 'post',
    params:query
  })
}

//变倍+ 开始
export function HKzoomAdd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomAddStartBF',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HKzoomAddEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomAddEndBF',
    method: 'post',
    params:query
  })
}
//变倍- 开始
export function HKzoomDec(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomDecStartBF',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HKzoomDecEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomDecEndBF',
    method: 'post',
    params:query
  })
}

//变焦+开始
export function HKfocusAdd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusAddStartBF',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HKfocusAddEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusAddEndBF',
    method: 'post',
    params:query
  })
}

//变焦-开始
export function HKfocusDec(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusDecStartBF',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HKfocusDecEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusDecEndBF',
    method: 'post',
    params:query
  })
}

//光圈+开始
export function HKirisAdd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisAddStartBF',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HKirisAddEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisAddEndBF',
    method: 'post',
    params:query
  })
}

//光圈-开始
export function HKirisDec(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisDecStartBF',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HKirisDecEnd(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisDecEndBF',
    method: 'post',
    params:query
  })
}






////////////////////////长按事件////////////////////////////
//云台向上 开始
export function HKptzUp1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlUpStart1BF',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HKptzUpEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlUpEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向下 开始
export function HKptzDown1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlDownStart1BF',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HKptzDownEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlDownEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向左  开始
export function HKptzLeft1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftStart1BF',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HKptzLeftEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向右  开始
export function HKptzRight1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightStart1BF',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HKptzRightEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向左上  开始
export function HKptzLeftUp1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftUpStart1BF',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HKptzLeftUpEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftUpEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向右上 开始
export function HKptzRightUp1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightUpStart1BF',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HKptzRightUpEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightUpEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向左下  开始
export function HKptzLeftDown1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftDownStart1BF',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HKptzLeftDownEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlLeftDownEnd1BF',
    method: 'post',
    params:query
  })
}

//云台向右下 开始
export function HKptzRightDown1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightDownStart1BF',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HKptzRightDownEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlRightDownEnd1BF',
    method: 'post',
    params:query
  })
}

//变倍+ 开始
export function HKzoomAdd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomAddStart1BF',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HKzoomAddEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomAddEnd1BF',
    method: 'post',
    params:query
  })
}
//变倍- 开始
export function HKzoomDec1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomDecStart1BF',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HKzoomDecEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlZoomDecEnd1BF',
    method: 'post',
    params:query
  })
}

//变焦+开始
export function HKfocusAdd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusAddStart1BF',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HKfocusAddEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusAddEnd1BF',
    method: 'post',
    params:query
  })
}

//变焦-开始
export function HKfocusDec1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusDecStart1BF',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HKfocusDecEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlFocusDecEnd1BF',
    method: 'post',
    params:query
  })
}

//光圈+开始
export function HKirisAdd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisAddStart1BF',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HKirisAddEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisAddEnd1BF',
    method: 'post',
    params:query
  })
}

//光圈-开始
export function HKirisDec1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisDecStart1BF',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HKirisDecEnd1(query) {
  return request({
    url: '/nssc/video/MHKptzBF/ptzControlIrisDecEnd1BF',
    method: 'post',
    params:query
  })
}

//摄像头flv地址
export function flvVideo(data){
  return request({
    url:'/nssc/videoFlv/getVideoFlv',
    method:'post',
    params: data
  })
}

//停止摄像头flv流
export function flvStop(){
  return request({
    url:'/nssc/videoFlv/stopVideoFlv',
    method:'post'
  })
}



